function IsCheckedName(status) {
  let text = "";
  switch (status) {
    case 2:
      text = "已实名";
      break;
    case 3:
      text = "去实名";
      break;
    case 4:
      text = "实名中";
      break;

    case 5:
      text = "审核失败";
      break;
  }

  return text;
}


 function  checkPhone(phone) {
      if (!/^1(3|4|5|6|7|8|9)\d{9}$/.test(phone)) {
        uni.showToast({
          title: "请输入有效手机号码",
          icon: "none",
          duration: 2000,
        });
        return false;
      } else {
        return true;
      }
    }

module.exports = {
  IsCheckedName: IsCheckedName,
  checkPhone:checkPhone
};
